<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="pg" uri="/page-tags"%>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
 	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="title" content="天地行信息有限公司">
	<meta name="description" content="天地行信息有限公司">
	<meta name="keywords" content="天地行信息有限公司">
	<title>系统管理</title>
	<jsp:include page="../../main/main.jsp"></jsp:include>

  </head>
  
  <body>
   <div class="container-fluid" >
		<div class="row" >
			<div class="col-md-12" style="margin-bottom: -15px;">
				<jsp:include page="../../main/menu.jsp"></jsp:include>
			</div>
		</div>
		<div class="row" >
			<div class="col-md-3" >
				<jsp:include page="../../main/managerMenu.jsp"></jsp:include>
			</div>	
			
			<div class="col-md-9">
				 	<div class="panel panel-primary">
					  		<div class="panel-heading">
							    <h3 class="panel-title">
							    	<s:property value="menuTitle"/>
							    </h3>
							  </div>
							  <div class="panel-body"  id="panel_divs">
								  <div class="col-md-12" >
										<table class="table table-hover">
											<thead>
												<tr>
													<td  align="left"><input type="checkbox" id='ckbox' onchange="checkAll()"></td>
													<td align="left">序号</td>
													<td align="left">标题</td>
													<td align="right">创建时间</td>
												</tr>
											</thead>
											<tbody>
												<s:iterator value="%{list}"  id="id"   status="status">
												   <tr>
												     <td align="left"><input type="checkbox" name="ck"></td>
												   	 <td align="left"> <s:property value="#status.index+1"/></td>
													 <td align="left" style="cursor: pointer" onclick="openNew('<s:property value="id"/>')"><s:property value="title"/></td>
													 <td align="right">[<s:date name="createDate" format="yyyy-MM-dd"/>]</td>
													</tr>
												</s:iterator>
												    <tr>
												     <td align="left"></td>
												   	 <td align="left"> </td>
													 <td align="left"> </td>
													 <td align="right"></td>
													</tr>
											</tbody>
										</table>
									</div>
									<div class="col-md-12" >
									     <pg:pages  pageNo="pageNo" total="total" styleClass="page"  theme="number" ></pg:pages>
									</div>
							  </div>
						</div>
			</div>
		</div>
	</div>
	 <jsp:include page="../../main/footer.jsp"></jsp:include>
  </body>
  
  <script type="text/javascript">
	   checkAll=function(){
			if($('#ckbox').prop("checked"))
				$("input[name='ck']").prop("checked","true");
			else
				$("input[name='ck']").removeAttr("checked");
		}
  </script>
  
</html>
